See also
Insert line break on command line
|
|
First enter
and then save the file |
|
55r # 55 columns to the right 20l # 20 columns to the left !1000 # go to column 1000 :20 # go to line 20 |
|
vi <file> +<line nr> |
|
Enable them in ~/.vimrc with
set modeline Examples: <!-- vim: set ts=4 sw=4: --> // vim: noai:ts=4:sw=4 /* vim: set noai ts=4 sw=4: */ # vim: set expandtab: To re-indent all press gg=G More hints: http://vim.wikia.com/wiki/Modeline_magic |
|
apt-get install vim-nox # ensures scripting support apt-get install vim-addon-manager |
|
set mouse=a |
:colortheme # Get current theme
:colortheme <name> # Set another theme (use tab for autocomplete!)
:syntax off # Disable syntax highlighting
:syntax on # Enable syntax highlighting
:copen # Open quickfix list
:cn # Next
:cp # Previous
:cclose # Close quickfix list
:cexpr system('grep -n xyz *') # Load a grep result as quickfix
Hint: fastest skipping on English keyboard layout "@:"